//
//  HWUserInfo.h
//  嗨文
//
//  Created by 响当当 on 2019/3/20.
//  Copyright © 2019年 dongzheng. All rights reserved.
//

#import <Foundation/Foundation.h>

//typedef NS_ENUM (NSInteger, UserStauts)
//{
//
//};

#define current_User [HWUserInfo currentUser]
@interface HWUserInfo : NSObject
/**
 *  账号
 */
@property (nonatomic,copy)NSString *username;
/**
 *  昵称
 */
@property (nonatomic,copy)NSString *nickName;
/**
 *  密码
 */
@property (nonatomic,copy)NSString *password;

/**
 *  唯一请求标识
 */
@property (nonatomic,copy)NSString *token;
/**
 *  唯一请求标识
 */
@property (nonatomic,copy)NSString *refrehToken;
/**
 *  用户id
 */
@property (nonatomic,copy)NSString *userID;

/**
 *  是否登陆
 */
@property (nonatomic,copy)NSString *hasLogin;

/**
 *  是否隐藏
 */
@property (nonatomic,strong)NSNumber *isHideinfo;

/**
 *  是否是企业
 */
@property (nonatomic,strong)NSNumber *isDemoUser;

/**
 *  强制更新
 */
@property (nonatomic,strong)NSString *detail;

/**
 *  选择行业
 */
@property (nonatomic,strong)NSNumber *missingIndestry;
/**
 *  获取当前用户
 */
+ (HWUserInfo *)currentUser;
/**
 *  保存Session，保存当前用户
 */
-(void)savaSessionSucess:(void(^)(void))sucess fail:(void(^)(NSError *error))fail;

/**
 *  更新当前用户信息
 */
- (void)upDateSessionSucess:(void(^)(void))sucess fail:(void(^)(NSError *error))fail;
/**
 *   删除用户列表某个用户
 */
- (void)deleteUserAccountInfoByUid:(NSNumber *)uid sucess:(void(^)(void))sucess fail:(void(^)(NSError *error))fail;
/**
 *  获取用户列表
 */
- (void)getUserListSucess:(void(^)(id resopnse))sucess;
/**
 *  切换用户
 */
- (void)changeLoginUser:(NSString *)userName;
/**
 *  退出当前用户登陆
 */
- (void)loginOut;
/**
 *  清空当前Session，用户重新登录
 */
-(void) clearSession;
/**
 *  改变登录状态
 */
-(void)changeLoginStatus;
@end
